package wusiyuan.service.impl;

import java.util.ArrayList;
import java.util.List;

import entity.User;
import entity.User_Inf;
import wusiyuan.dao.ChangePasswordDao;
import wusiyuan.dao.impl.ChangePasswordDaoImpl;
import wusiyuan.service.ChangePasswordService;



public class ChangePasswordServiceImpl implements ChangePasswordService {
	 private ChangePasswordDao cpd=new ChangePasswordDaoImpl();
	
	@Override
	public List getUserInfo(String username) {
	User_Inf info = cpd.getUserInfo(username);
	List list=new ArrayList();
	list.add(info.getPhone());
	list.add(info.getUser_email());
	return list;
	}

	@Override
	public List<User> getHistoryPassword(String username) {
		return cpd.getHistoryPassword(username);
	}





}
